package Com.amit.IO;

import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Lab4 {

	public static void main(String[] args) throws Exception {
		
		
		FileOutputStream fout1=new FileOutputStream("C:\\Users\\NETA JEE\\Desktop\\Amit.txt");
		FileOutputStream fout2=new FileOutputStream("C:\\Users\\NETA JEE\\Desktop\\Anil.txt");
		
		ByteArrayOutputStream bout=new ByteArrayOutputStream();
		
		bout.write(23900000);
		
		bout.writeTo(fout1);
		bout.writeTo(fout2);
		
		bout.flush();
		
		bout.close();
		
		
		System.out.println("success");
		
	

	}

}
